<!-- <table border="0" cellpadding="0" cellspacing="0" width="700">
                  <tbody><tr>
                    <td align="left" width="313"><p class="endzi"><span class="endzi">贵宾专线：</span><br>
                        <span class="telzi"><strong>4006-012-567<br>
                        </strong></span><span class="endzi">官网：www.cnhbgy.com
                        </span><br>
                    </p>
                      </td>
                    <td align="left" width="387"><p class="endzi">生 产 商 ：湖北格茵新材料有限公司 </p>
                      <p class="endzi">　　　　　湖北格茵环保木业有限公司 </p>
                      <p class="endzi">工厂地址：湖北黄石市西塞山河西大道86号格茵工业园 </p></td>
                       </tr>
              </tbody>
</table> -->
              <br></br>
              <table border="0" cellpadding="0" cellspacing="0" width="700">
                  <tbody><tr>
                    <td>


<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="keywords" content="百度地图,百度地图API，百度地图自定义工具，百度地图所见即所得工具">
<meta name="description" content="百度地图API自定义地图，帮助用户在可视化操作下生成百度地图">
<title>百度地图API自定义地图</title>
<!--引用百度地图API-->
<style type="text/css">
    html,body{margin:0;padding:0;}
    .iw_poi_title {color:#CC5522;font-size:14px;font-weight:bold;overflow:hidden;padding-right:13px;white-space:nowrap}
    .iw_poi_content {font:12px arial,sans-serif;overflow:visible;padding-top:4px;white-space:-moz-pre-wrap;word-wrap:break-word}
</style>
<script type="text/javascript" src="api-key=&amp;v=1.1&amp;services=true.js" tppabs="http://api.map.baidu.com/api?key=&amp;v=1.1&amp;services=true"></script><script type="text/javascript" src="http://api.map.baidu.com/getscript?v=1.1&amp;ak=&amp;services=true&amp;t=20130716024058"></script><link rel="stylesheet" type="text/css" href="bmap.css" *tpa="http://api.map.baidu.com/res/11/bmap.css*//">



  <!--百度地图容器-->
  <div style="width: 697px; height: 550px; border: 1px solid rgb(204, 204, 204); overflow: hidden; position: relative; z-index: 0; background-image: url(&quot;http://api.map.baidu.com/images/bg.png&quot;); color: rgb(0, 0, 0); text-align: left;" id="dituContent"><div style="overflow: visible; position: absolute; z-index: 0; left: 0px; top: 0px; cursor: grab;" id="platform"><div style="position: absolute; left: 0px; top: 0px; z-index: 9; overflow: hidden; width: 697px; height: 550px;" class=" BMap_mask" id="mask"></div><div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 200;"><div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 800;"><div class="pop" style="position: absolute; cursor: default; left: 188px; top: 145px;"><div style="overflow: hidden; z-index: 1; position: absolute; left: 0px; top: 0px; width: 25px; height: 25px;"><img style="border:none;margin:0px;padding:0px;position:absolute;left:0px;top:0px;width:690px;height:786px;" src="http://api.map.baidu.com/images/iw3.png"></div><div style="overflow: hidden; z-index: 1; position: absolute; left: 25px; top: 0px; width: 284px; height: 25px;" class="top"><img src="http://api.map.baidu.com/images/iw3.png" style="position:absolute; left: -65px; top: -60px;"></div><div style="overflow: hidden; z-index: 1; position: absolute; left: 309px; top: 0px; width: 25px; height: 25px;"><img style="border:none;margin:0px;padding:0px;position:absolute;left:-665px;top:0px;width:690px;height:786px;" src="http://api.map.baidu.com/images/iw3.png"></div><div style="overflow: hidden; z-index: 1; position: absolute; left: 0px; top: 25px; width: 332px; height: 37px;" class="center"><img src="http://api.map.baidu.com/images/iw3.png" style="position:absolute;left:-65px;top:-60px;"></div><div style="overflow: hidden; z-index: 1; position: absolute; left: 0px; top: 62px; width: 25px; height: 25px;"><img style="border:none;margin:0px;padding:0px;position:absolute;left:0px;top:-665px;width:690px;height:786px;" src="http://api.map.baidu.com/images/iw3.png"></div><div style="overflow: hidden; z-index: 1; position: absolute; left: 25px; top: 62px; width: 284px; height: 24px;" class="bottom"><img src="http://api.map.baidu.com/images/iw3.png" style="position:absolute;left:-65px;top:-146px;"></div><div style="overflow: hidden; z-index: 1; position: absolute; left: 309px; top: 62px; width: 25px; height: 25px;"><img style="border:none;margin:0px;padding:0px;position:absolute;left:-665px;top:-665px;width:690px;height:786px;" src="http://api.map.baidu.com/images/iw3.png"></div><div style="overflow: hidden; z-index: 1; position: absolute; left: 150px; top: 62px; width: 34px; height: 50px;"><img style="border:none;margin:0px;padding:0px;position:absolute;left:-186px;top:-691px;width:690px;height:786px;" src="http://api.map.baidu.com/images/iw3.png"></div><div style="width: 302px; height: 55px; position: absolute; left: 16px; top: 16px; z-index: 10; overflow: hidden;"><div class="BMap_bubble_title" style="display: none; overflow: hidden; height: auto; line-height: 24px; white-space: nowrap; width: auto;"></div><div class="BMap_bubble_content" style="width: auto; height: auto;"><b class="iw_poi_title" title="湖北格茵新材料有限公司">湖北格茵新材料有限公司</b><div class="iw_poi_content">工厂地址：湖北黄石市西塞山河西大道86号格茵工业园。<br>4006-012-567</div></div><div class="BMap_bubble_max_content" style="display:none;position:relative"></div></div><img style="position: absolute; top: 12px; width: 12px; height: 12px; -moz-user-select: none; cursor: pointer; z-index: 10000; left: 309px;" src="http://api.map.baidu.com/images/iw_close.gif"><img style="position: absolute; top: 12px; width: 12px; height: 12px; -moz-user-select: none; cursor: pointer; z-index: 10000; display: none; left: 289px;" src="http://api.map.baidu.com/images/iw_plus.gif"></div></div><div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 700;"><span title="" class="BMap_Marker BMap_noprint" unselectable="on" "="" style="position: absolute; padding: 0px; margin: 0px; border: 0px none; -moz-user-select: none; cursor: pointer; background: transparent url(&quot;http://api.map.baidu.com/images/blank.gif&quot;) repeat scroll 0% 0%; width: 23px; height: 25px; left: 321px; top: 255px; z-index: -6033818;"></span></div><div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 600;"><div class="shadow" style="position: absolute; left: 166px; top: 189px;" type="infowindow_shadow"><div style="overflow: hidden; z-index: 1; position: absolute; left: 36px; top: 0px; width: 70px; height: 30px;"><img onmousedown="return false" style="left: -323px; top: 0px;" src="http://api.map.baidu.com/images/iws3.png"></div><div style="overflow: hidden; z-index: 1; position: absolute; left: 106px; top: 0px; width: 245px; height: 30px;"><img onmousedown="return false" style="left: -393px; top: 0px;" src="http://api.map.baidu.com/images/iws3.png"></div><div style="overflow: hidden; z-index: 1; position: absolute; left: 351px; top: 0px; width: 70px; height: 30px;"><img onmousedown="return false" style="left: -1033px; top: 0px;" src="http://api.map.baidu.com/images/iws3.png"></div><div style="overflow: hidden; z-index: 1; position: absolute; left: 29px; top: 30px; width: 77px; height: 7px;"><img onmousedown="return false" style="top: -30px; left: -316px;" src="http://api.map.baidu.com/images/iws3.png"></div><div style="overflow: hidden; z-index: 1; position: absolute; left: 106px; top: 30px; width: 267px; height: 7px;"><img onmousedown="return false" style="left: -360px; top: -30px;" src="http://api.map.baidu.com/images/iws3.png"></div><div style="overflow: hidden; z-index: 1; position: absolute; left: 373px; top: 30px; width: 77px; height: 7px;"><img onmousedown="return false" style="top: -30px; left: -1056px;" src="http://api.map.baidu.com/images/iws3.png"></div><div style="overflow: hidden; z-index: 1; position: absolute; left: 0px; top: 37px; width: 50px; height: 60px;"><img onmousedown="return false" style="left: -14px; top: -310px;" src="http://api.map.baidu.com/images/iws3.png"></div><div style="overflow: hidden; z-index: 1; position: absolute; left: 50px; top: 37px; width: 52px; height: 60px;"><img onmousedown="return false" style="left: -255px; top: -310px;" src="http://api.map.baidu.com/images/iws3.png"></div><div style="overflow: hidden; z-index: 1; position: absolute; left: 102px; top: 37px; width: 140px; height: 60px;"><img onmousedown="return false" style="left: -440px; top: -310px;" src="http://api.map.baidu.com/images/iws3.png"></div><div style="overflow: hidden; z-index: 1; position: absolute; left: 242px; top: 37px; width: 102px; height: 60px;"><img onmousedown="return false" style="left: -255px; top: -310px;" src="http://api.map.baidu.com/images/iws3.png"></div><div style="overflow: hidden; z-index: 1; position: absolute; left: 344px; top: 37px; width: 70px; height: 60px;"><img onmousedown="return false" style="left: -754px; top: -310px;" src="http://api.map.baidu.com/images/iws3.png"></div></div></div><div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 500;"></div><div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 400;"><span class="BMap_Marker" unselectable="on" style="position: absolute; padding: 0px; margin: 0px; border: 0px none; width: 0px; height: 0px; -moz-user-select: none; left: 330px; top: 280px; z-index: -6033818;"><div style="position: absolute; margin: 0px; padding: 0px; width: 23px; height: 25px; left: -9px; top: -25px; overflow: hidden;"><img src="us_mk_icon.png" style="border:none;left:-46px; top:-21px; position:absolute;"></div><label style="position: absolute; -moz-user-select: none; display: none; cursor: pointer; background-color: rgb(255, 255, 255); border: 1px solid rgb(128, 128, 128); padding: 1px; white-space: nowrap; font: 12px arial,simsun; z-index: 80; color: rgb(51, 51, 51); left: 13px; top: -20px;" unselectable="on" class=" BMapLabel">湖北格茵新材料有限公司</label></span></div><div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 200;"></div></div><div style="position: absolute; z-index: -1; left: 349px; top: 275px;"><img src="http://online2.map.bdimg.com/tile/?qt=tile&amp;x=25054&amp;y=6843&amp;z=17&amp;styles=pl&amp;udt=20140928" style="-moz-user-select: none; position: absolute; border: medium none; width: 256px; height: 256px; left: -193px; top: -242px;"><img src="http://online2.map.bdimg.com/tile/?qt=tile&amp;x=25053&amp;y=6844&amp;z=17&amp;styles=pl&amp;udt=20140928" style="-moz-user-select: none; position: absolute; border: medium none; width: 256px; height: 256px; left: -449px; top: -498px;"><img src="http://online3.map.bdimg.com/tile/?qt=tile&amp;x=25056&amp;y=6842&amp;z=17&amp;styles=pl&amp;udt=20140928" style="-moz-user-select: none; position: absolute; border: medium none; width: 256px; height: 256px; left: 319px; top: 14px;"><img src="http://online3.map.bdimg.com/tile/?qt=tile&amp;x=25055&amp;y=6843&amp;z=17&amp;styles=pl&amp;udt=20140928" style="-moz-user-select: none; position: absolute; border: medium none; width: 256px; height: 256px; left: 63px; top: -242px;"><img src="http://online1.map.bdimg.com/tile/?qt=tile&amp;x=25055&amp;y=6841&amp;z=17&amp;styles=pl&amp;udt=20140928" style="-moz-user-select: none; position: absolute; border: medium none; width: 256px; height: 256px; left: 63px; top: 270px;"><img src="http://online3.map.bdimg.com/tile/?qt=tile&amp;x=25054&amp;y=6844&amp;z=17&amp;styles=pl&amp;udt=20140928" style="-moz-user-select: none; position: absolute; border: medium none; width: 256px; height: 256px; left: -193px; top: -498px;"><img src="http://online1.map.bdimg.com/tile/?qt=tile&amp;x=25054&amp;y=6842&amp;z=17&amp;styles=pl&amp;udt=20140928" style="-moz-user-select: none; position: absolute; border: medium none; width: 256px; height: 256px; left: -193px; top: 14px;"><img src="http://online1.map.bdimg.com/tile/?qt=tile&amp;x=25053&amp;y=6843&amp;z=17&amp;styles=pl&amp;udt=20140928" style="-moz-user-select: none; position: absolute; border: medium none; width: 256px; height: 256px; left: -449px; top: -242px;"><img src="http://online2.map.bdimg.com/tile/?qt=tile&amp;x=25056&amp;y=6841&amp;z=17&amp;styles=pl&amp;udt=20140928" style="-moz-user-select: none; position: absolute; border: medium none; width: 256px; height: 256px; left: 319px; top: 270px;"><img src="http://online2.map.bdimg.com/tile/?qt=tile&amp;x=25055&amp;y=6842&amp;z=17&amp;styles=pl&amp;udt=20140928" style="-moz-user-select: none; position: absolute; border: medium none; width: 256px; height: 256px; left: 63px; top: 14px;"><img src="http://online0.map.bdimg.com/tile/?qt=tile&amp;x=25056&amp;y=6844&amp;z=17&amp;styles=pl&amp;udt=20140928" style="-moz-user-select: none; position: absolute; border: medium none; width: 256px; height: 256px; left: 319px; top: -498px;"><img src="http://online4.map.bdimg.com/tile/?qt=tile&amp;x=25053&amp;y=6841&amp;z=17&amp;styles=pl&amp;udt=20140928" style="-moz-user-select: none; position: absolute; border: medium none; width: 256px; height: 256px; left: -449px; top: 270px;"><img src="http://online4.map.bdimg.com/tile/?qt=tile&amp;x=25056&amp;y=6843&amp;z=17&amp;styles=pl&amp;udt=20140928" style="-moz-user-select: none; position: absolute; border: medium none; width: 256px; height: 256px; left: 319px; top: -242px;"><img src="http://online4.map.bdimg.com/tile/?qt=tile&amp;x=25055&amp;y=6844&amp;z=17&amp;styles=pl&amp;udt=20140928" style="-moz-user-select: none; position: absolute; border: medium none; width: 256px; height: 256px; left: 63px; top: -498px;"><img src="http://online0.map.bdimg.com/tile/?qt=tile&amp;x=25054&amp;y=6841&amp;z=17&amp;styles=pl&amp;udt=20140928" style="-moz-user-select: none; position: absolute; border: medium none; width: 256px; height: 256px; left: -193px; top: 270px;"><img src="http://online0.map.bdimg.com/tile/?qt=tile&amp;x=25053&amp;y=6842&amp;z=17&amp;styles=pl&amp;udt=20140928" style="-moz-user-select: none; position: absolute; border: medium none; width: 256px; height: 256px; left: -449px; top: 14px;"></div></div><div id="zoomer" style="position:absolute;z-index:0;top:0px;left:0px;overflow:hidden;visibility:hidden;cursor:-moz-grab"><div class="BMap_zoomer" style="top:0;left:0;"></div><div class="BMap_zoomer" style="top:0;right:0;"></div><div class="BMap_zoomer" style="bottom:0;left:0;"></div><div class="BMap_zoomer" style="bottom:0;right:0;"></div></div><div class=" anchorBL" style="height: 32px; position: absolute; z-index: 10; -moz-user-select: none; bottom: 0px; right: auto; top: auto; left: 1px;"><a style="outline: medium none;" href="http://map.baidu.com/?sr=1" target="_blank" title="到百度地图首页"><img style="border:none;width:77px;height:32px" src="http://api.map.baidu.com/images/copyright_logo.png"></a></div><div style="cursor: default; white-space: nowrap; -moz-user-select: none; bottom: 2px; right: auto; top: auto; left: 81px; position: absolute; z-index: 10;" class=" BMap_cpyCtrl anchorBL" unselectable="on"><span style="-webkit-text-size-adjust:none;color:#000;background:none;line-height:15px;font:11px arial,simsun" _cid="1">© 2015 Baidu</span></div><div style="width: 52px; height: 226px; bottom: auto; right: auto; top: 10px; left: 10px; position: absolute; z-index: 1100; -moz-user-select: none;" class=" BMap_stdMpCtrl BMap_stdMpType0 BMap_noprint anchorTL" unselectable="on"><div class="BMap_stdMpPan"><div class="BMap_button BMap_panN" title="向上平移"></div><div class="BMap_button BMap_panW" title="向左平移"></div><div class="BMap_button BMap_panE" title="向右平移"></div><div class="BMap_button BMap_panS" title="向下平移"></div><div class="BMap_stdMpPanBg BMap_smcbg"></div></div><div style="height: 167px; width: 52px;" class="BMap_stdMpZoom"><div style="height: 167px; width: 37px;"><div class="BMap_button BMap_stdMpZoomIn" title="放大一级"><div class="BMap_smcbg"></div></div><div class="BMap_button BMap_stdMpZoomOut" title="缩小一级"><div class="BMap_smcbg"></div></div></div><div style="height: 133px;" class="BMap_stdMpSlider"><div style="height: 124px;" class="BMap_stdMpSliderBgTop"><div class="BMap_smcbg"></div></div><div style="top: 124px;" class="BMap_stdMpSliderBgBot"><div class="BMap_smcbg"></div></div><div class="BMap_stdMpSliderMask" title="放置到此级别"></div><div style="cursor: grab; top: 8px;" class="BMap_stdMpSliderBar" title="拖动缩放"><div class="BMap_smcbg"></div></div></div><div class="BMap_zlHolder"><div class="BMap_zlSt"><div class="BMap_smcbg"></div></div><div class="BMap_zlCity"><div class="BMap_smcbg"></div></div><div class="BMap_zlProv"><div class="BMap_smcbg"></div></div><div class="BMap_zlCountry"><div class="BMap_smcbg"></div></div></div></div></div><div style="width: 150px; height: 150px; bottom: 0px; right: 0px; top: auto; left: auto; position: absolute; z-index: 10; -moz-user-select: none;" class=" BMap_omCtrl BMap_noprint anchorBR quad4" unselectable="on"><div style="width: 149px; height: 149px;" class="BMap_omOutFrame"><div style="bottom: auto; right: auto; top: 8px; left: 8px; width: 139px; height: 139px;" class="BMap_omInnFrame"><div style="overflow: hidden; background-image: url(&quot;http://api.map.baidu.com/images/bg.png&quot;); color: rgb(0, 0, 0); text-align: left;" class="BMap_omMapContainer"><div style="overflow: visible; position: absolute; z-index: 0; left: 0px; top: 0px; cursor: grab;" id="platform"><div style="position: absolute; left: 0px; top: 0px; z-index: 9; overflow: hidden; width: 139px; height: 139px;" class=" BMap_mask" id="mask"></div><div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 200;"><div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 800;"></div><div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 700;"><div class="BMap_Division" style="position: absolute; width: 44px; display: block; overflow: hidden; border-width: 1px; border-style: solid; border-color: rgb(173, 207, 244) rgb(39, 75, 139) rgb(39, 75, 139) rgb(132, 176, 223); -moz-border-top-colors: none; -moz-border-right-colors: none; -moz-border-bottom-colors: none; -moz-border-left-colors: none; border-image: none; opacity: 1; z-index: 60; left: 47px; top: 52px; height: 34px;"><div style="width: 42px; height: 32px;" class="BMap_omViewInnFrame"><div class="BMap_omViewMask"></div></div></div></div><div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 600;"></div><div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 500;"></div><div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 400;"></div><div style="position: absolute; height: 0px; width: 0px; left: 0px; top: 0px; z-index: 200;"></div></div><div style="position: absolute; z-index: -1; left: 69px; top: 69px;"><img src="http://online3.map.bdimg.com/tile/?qt=tile&amp;x=1566&amp;y=427&amp;z=13&amp;styles=pl&amp;udt=20140928" style="-moz-user-select: none; position: absolute; border: medium none; width: 256px; height: 256px; left: 20px; top: -79px;"><img src="http://online2.map.bdimg.com/tile/?qt=tile&amp;x=1565&amp;y=427&amp;z=13&amp;styles=pl&amp;udt=20140928" style="-moz-user-select: none; position: absolute; border: medium none; width: 256px; height: 256px; left: -236px; top: -79px;"></div></div></div><div style="cursor: grab; width: 44px; height: 34px; left: 47px; top: 52px;" class="BMap_omViewMv"><div style="width: 42px; height: 32px;" class="BMap_omViewInnFrame"><div></div></div></div></div></div><div style="bottom: 0px; right: 0px; top: auto; left: auto;" class="BMap_omBtn"></div></div><div style="bottom: 18px; right: auto; top: auto; left: 81px; width: 61px; position: absolute; z-index: 10; -moz-user-select: none;" class=" BMap_scaleCtrl BMap_noprint anchorBL" unselectable="on"><div class="BMap_scaleTxt" unselectable="on">100&nbsp;米</div><div class="BMap_scaleBar BMap_scaleHBar"><img style="border:none" src="http://api.map.baidu.com/images/mapctrls11.png"></div><div class="BMap_scaleBar BMap_scaleLBar"><img style="border:none" src="http://api.map.baidu.com/images/mapctrls11.png"></div><div class="BMap_scaleBar BMap_scaleRBar"><img style="border:none" src="http://api.map.baidu.com/images/mapctrls11.png"></div></div></div>

<script type="text/javascript">
    //创建和初始化地图函数：
    function initMap(){
        createMap();//创建地图
        setMapEvent();//设置地图事件
        addMapControl();//向地图添加控件
        addMarker();//向地图中添加marker
    }
    
    //创建地图函数：
    function createMap(){
        var map = new BMap.Map("dituContent");//在百度地图容器中创建一个地图
        var point = new BMap.Point(115.23493,30.169177);//定义一个中心点坐标
        map.centerAndZoom(point,17);//设定地图的中心点和坐标并将地图显示在地图容器中
        window.map = map;//将map变量存储在全局
    }
    
    //地图事件设置函数：
    function setMapEvent(){
        map.enableDragging();//启用地图拖拽事件，默认启用(可不写)
        map.enableScrollWheelZoom();//启用地图滚轮放大缩小
        map.enableDoubleClickZoom();//启用鼠标双击放大，默认启用(可不写)
        map.enableKeyboard();//启用键盘上下左右键移动地图
    }
    
    //地图控件添加函数：
    function addMapControl(){
        //向地图中添加缩放控件
  var ctrl_nav = new BMap.NavigationControl({anchor:BMAP_ANCHOR_TOP_LEFT,type:BMAP_NAVIGATION_CONTROL_LARGE});
  map.addControl(ctrl_nav);
        //向地图中添加缩略图控件
  var ctrl_ove = new BMap.OverviewMapControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT,isOpen:1});
  map.addControl(ctrl_ove);
        //向地图中添加比例尺控件
  var ctrl_sca = new BMap.ScaleControl({anchor:BMAP_ANCHOR_BOTTOM_LEFT});
  map.addControl(ctrl_sca);
    }
    
    //标注点数组
    var markerArr = [{title:"湖北格茵新材料有限公司",content:"工厂地址：湖北黄石市西塞山河西大道86号格茵工业园。<br/>4006-012-567",point:"115.234598|30.169099",isOpen:1,icon:{w:23,h:25,l:46,t:21,x:9,lb:12}}
     ];
    //创建marker
    function addMarker(){
        for(var i=0;i<markerArr.length;i++){
            var json = markerArr[i];
            var p0 = json.point.split("|")[0];
            var p1 = json.point.split("|")[1];
            var point = new BMap.Point(p0,p1);
      var iconImg = createIcon(json.icon);
            var marker = new BMap.Marker(point,{icon:iconImg});
      var iw = createInfoWindow(i);
      var label = new BMap.Label(json.title,{"offset":new BMap.Size(json.icon.lb-json.icon.x+10,-20)});
      marker.setLabel(label);
            map.addOverlay(marker);
            label.setStyle({
                        borderColor:"#808080",
                        color:"#333",
                        cursor:"pointer"
            });
      
      (function(){
        var index = i;
        var _iw = createInfoWindow(i);
        var _marker = marker;
        _marker.addEventListener("click",function(){
            this.openInfoWindow(_iw);
          });
          _iw.addEventListener("open",function(){
            _marker.getLabel().hide();
          })
          _iw.addEventListener("close",function(){
            _marker.getLabel().show();
          })
        label.addEventListener("click",function(){
            _marker.openInfoWindow(_iw);
          })
        if(!!json.isOpen){
          label.hide();
          _marker.openInfoWindow(_iw);
        }
      })()
        }
    }
    //创建InfoWindow
    function createInfoWindow(i){
        var json = markerArr[i];
        var iw = new BMap.InfoWindow("<b class='iw_poi_title' title='" + json.title + "'>" + json.title + "</b><div class='iw_poi_content'>"+json.content+"</div>");
        return iw;
    }
    //创建一个Icon
    function createIcon(json){
        var icon = new BMap.Icon("us_mk_icon.png"/*tpa=http://app.baidu.com/map/images/us_mk_icon.png*/, new BMap.Size(json.w,json.h),{imageOffset: new BMap.Size(-json.l,-json.t),infoWindowOffset:new BMap.Size(json.lb+5,1),offset:new BMap.Size(json.x,json.h)})
        return icon;
    }
    
    initMap();//创建和初始化地图
</script>
</td>
                  </tr>
                </tbody></table>